import Cookies from 'js-cookie'


export const SetCookie = (key, value) => {
    Cookies.set(key, value, {expires: 3});
    // localStorage.setItem(key,value)
}
export const GetCookie = () => {
    return Cookies.get('token');
    // localStorage.getItem(key)
}
export const RemoveCookie = (key) => {
    Cookies.remove(key);
    // localStorage.removeItem(key)
}

export const SetLocalStorage = (key, value) => {
    localStorage.setItem(key, JSON.stringify(value));
}
export const GetLocalStorage = (key) => {
    return JSON.parse(localStorage.getItem(key));
}
export const RemoveLocalStorage = (key) => {
    localStorage.removeItem(key)
}